package com.msmall.community.play.dao;

import java.util.List;

import com.msmall.base.dao.BaseDao;
import com.msmall.community.play.model.Play;
import com.msmall.community.play.model.UserPlay;

public interface PlayDao extends BaseDao<Play, Long>{

	// 获得用户所具有 的所有组件
	public List<Play> getByUserid(Long userid) throws Exception;
	
	/**
	 * 获得用户和一个PLAY的关系
	 * @param userid
	 * @param playId
	 * @return
	 */
	public UserPlay getUserPlay(Long userid, Long playId);
}
